From 134ef9dc4ad47858c2fd2c57c7389f8a5e955601 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 14 Sep 2005 16:56:05 +0000 Subject: [PATCH] Fix xc_make_page_below_4G(). Should fix PAE domain building on >= 4GB systems. Signed-off-by: Keir Fraser --- tools/libxc/xc_private.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 58f34c8eb1..e3ebc0931b 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -456,14 +456,14 @@ unsigned long xc_make_page_below_4G( unsigned long new_mfn; if ( xc_domain_memory_decrease_reservation( - xc_handle, domid, 1, 0, &mfn) != 1 ) + xc_handle, domid, 1, 0, &mfn) != 0 ) { fprintf(stderr,"xc_make_page_below_4G decrease failed. mfn=%lx\n",mfn); return 0; } if ( xc_domain_memory_increase_reservation( - xc_handle, domid, 1, 0, 32, &new_mfn) != 1 ) + xc_handle, domid, 1, 0, 32, &new_mfn) != 0 ) { fprintf(stderr,"xc_make_page_below_4G increase failed. mfn=%lx\n",mfn); return 0; -- 2.30.2